import request from '@/utils/request'

// 查询交接班记录列表
export function listShifts(query) {
  return request({
    url: '/basicInformation/shifts/list',
    method: 'get',
    params: query
  })
}

// 查询交接班记录详细
export function getShifts(id) {
  return request({
    url: '/basicInformation/shifts/' + id,
    method: 'get'
  })
}

// 新增交接班记录
export function addShifts(data) {
  return request({
    url: '/basicInformation/shifts',
    method: 'post',
    data: data
  })
}

// 修改交接班记录
export function updateShifts(data) {
  return request({
    url: '/basicInformation/shifts',
    method: 'put',
    data: data
  })
}

// 删除交接班记录
export function delShifts(id) {
  return request({
    url: '/basicInformation/shifts/' + id,
    method: 'delete'
  })
}

// 导出交接班记录
export function exportShifts(query) {
  return request({
    url: '/basicInformation/shifts/export',
    method: 'get',
    params: query
  })
}